﻿/*----------------------------------------------------------------
// Copyright (C) 2016 通通优品版权所有。
// 命名空间: STOWaybillMall.Orders.Dto
// 类名：GetUserOrderListOutput
// 功能描述：N/A
// 
// 创建标识：Roc.Lee(李鹏鹏) 2017/8/7 14:45:11 TEC-ROCLEE Roc.Lee

// 修改标识：
// 修改描述：
// 
//
//----------------------------------------------------------------*/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace STOWaybillMall.Orders.Dto
{
    /// <summary>
    /// 获取用户订单列表
    /// </summary>
    public class GetUserOrderListOutput : BaseOutput
    {
        /// <summary>
        /// 总数量
        /// </summary>
        public int TotalCount { get; set; }
        /// <summary>
        /// 订单详情
        /// </summary>
        public class OrderInfo
        {
            /// <summary>
            /// 订单标识/订单号
            /// </summary>
            public string OrderID { get; set; }
            /// <summary>
            /// 下单时间
            /// </summary>
            public DateTime CreateDate { get; set; }
            /// <summary>
            /// 快递单号
            /// </summary>
            public string ExpressWaybill { get; set; }
            /// <summary>
            /// 总金额
            /// </summary>
            public decimal TotalFee { get; set; }
            /// <summary>
            /// 需要支付金额
            /// </summary>
            public decimal NeedPayFee { get; set; }
            /// <summary>
            /// 余额支付金额
            /// </summary>
            public decimal BalanceOfDeduction { get; set; }

            /// <summary>
            /// 订单状态。20：待付款；30：待审核1；31：待审核2；39：审核失败；40：待发货；45：待收货；50：关闭的订单；60：交易已完成；70：已被拆分
            /// </summary>
            public byte OrderStatus { get; set; }
            /// <summary>
            /// 拆分前订单标识
            /// </summary>
            public string SplitFormOrderID { get; set; }
        }
        /// <summary>
        /// 商品信息
        /// </summary>
        public class ProductInfo
        {
            /// <summary>
            /// 商品标识
            /// </summary>
            public int ProductID { get; set; }
            /// <summary>
            /// 商品图片
            /// </summary>
            public string PicUri { get; set; }
            /// <summary>
            /// 商品名称
            /// </summary>
            public string ProductName { get; set; }
            /// <summary>
            /// 规格和属性名
            /// </summary>
            public string SpecAndPropName { get; set; }
            /// <summary>
            /// 购买单价
            /// </summary>
            public decimal BuyPrice { get; set; }
            /// <summary>
            /// 总金额
            /// </summary>
            public decimal TotalFee { get; set; }
            /// <summary>
            /// 购买数量
            /// </summary>
            public int BuyCount { get; set; }
            /// <summary>
            /// 商品对应的店铺
            /// </summary>
            public IList<UserStoreInfo> ProductStores { get; set; }


        }
        /// <summary>
        /// 用户的店铺信息
        /// </summary>
        public class UserStoreInfo
        {
            /// <summary>
            /// 店铺标识
            /// </summary>
            public long StoreId { get; set; }
            /// <summary>
            /// 店铺简称
            /// </summary>
            public string ShortName { get; set; }
            /// <summary>
            /// 店铺全称
            /// </summary>
            public string Name { get; set; }

        }
    }
}
